{template header}

<style>
.liketop{float:left;width:49%;border-right:dashed 1px #CCCCCC;}
.liketop .title{font-size:14px;padding:10px 0 20px 0}

.liketop .user{ overflow: hidden;}
.liketop .user ul{}
.liketop .user ul li{float:left;width:60px;height:60px;}

.liketop .like{padding:20px 0;}
.liketop .like a{background: none repeat scroll 0 0 #FAE9DA;
    color: #CA6445;border-radius: 2px 2px 2px 2px;
    display: inline-block;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 6px;}


.commenttop{float:right;width:49%}
</style>

<div class="midder">

<div class="anony-nav">
<div class="bd">
<div class="reg">

<strong>{php echo L::index_newcommunity}</strong>
<br>
<b>{php echo L::index_innovation}</b>
<br>
{php echo L::index_simple}
<br />
<br>
<a class="submit" href="{SITE_URL}{tsUrl('user','register')}">{php echo L::index_joinus}</a>
</div>

<div class="login">
<form action="{SITE_URL}{tsUrl('user','login',array('ts'=>'do'))}" method="post" name="lzform" id="lzform">
<fieldset>
<legend>{php echo L::index_login}</legend>
<div class="item">
<label>Email:</label>
<br />
<input type="email" tabindex="1" value="" name="email">
</div>
<div class="item">
<label>{php echo L::index_password}：</label>
<br />
<input type="password" tabindex="2" class="text" name="pwd">
<br /><a href="{SITE_URL}index.php?app=user&ac=forgetpwd">{php echo L::index_forgetpassword}</a>
</div>

<div class="item1">
<input type="hidden" name="cktime" value="2592000" />
<input type="submit" tabindex="4" class="submit" value="{php echo L::index_login}">
{php doAction('pub_header_login')}
</div>
</fieldset>
</form>
</div>

</div>
</div>

<div class="mc">
<div class="cleft">

<h2>{php echo L::index_recommendgroup}<span class="pl">&nbsp;(<a href="{SITE_URL}{tsUrl('group')}">{php echo L::index_more}</a>) </span></h2>

<div style="overflow:hidden;">
<!--{if $arrRecommendGroup}-->
<!--{loop $arrRecommendGroup $key $item}-->
<div class="sub-item">
<div class="pic">
<a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid]))}">
<img src="{$item[icon_48]}" alt="{$item[groupname]}">
</a>
</div>
<div class="info">
<a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a> ({$item[count_user]})             
<p>{$item[groupdesc]}</p>
</div>
</div>
<!--{/loop}-->
<!--{/if}-->
</div>

<h2>{php echo L::index_hottopic}</h2>

<div class="liketop">
<div class="title"><a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$strLikeTopic['topic']['topicid']))}">{$strLikeTopic['topic']['title']}</a></div>
<div class="user">
<ul>
{loop $strLikeTopic['user'] $key $item}
<li><a href="{SITE_URL}{tsUrl('user','space',array('id'=>$item['userid']))}" rel="face" uid="{$item['userid']}"><img src="{$item['face']}" alt="{$item['username']}" /></a></li>
{/loop}
<ul>
</div>
<div class="like"><a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$strLikeTopic['topic']['topicid']))}">{$strLikeTopic['num']} <i>♥</i></a></div>
</div>

<div class="commenttop">
<ul style="line-height:25px;">
{loop $arrHotTopics $key $item}
<li><a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$item['topicid']))}">{php echo getsubstrutf8($item[title],0,20)}</a> ({$item['count_comment']})</li>
{/loop}
</ul>
</div>

<div class="clear"></div>

</div>

<div class="cright">
{php doAction('index_right')}
<div>
<form method="GET" action="index.php">
<input type="hidden" name="app" value="search" />
<input type="hidden" name="ac" value="s" />
<input style="width:200px" type="text"  name="kw" />
<input type="submit" class="submit" value="{php echo L::index_search}" />
</form>
</div>

<h2>{php echo L::index_newgroup}</h2>

<div class="line23">
<!--{if $arrNewGroup}-->
<!--{loop $arrNewGroup $key $item}-->
<a href="{SITE_URL}{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a> ({$item[count_user]}<!--{if $item[uptime]>strtotime(date('Y-m-d 00:00:00'))}-->/<font color="orange">{$item[count_topic_today]}</font><!--{else}--><!--{/if}-->)<br>
<!--{/loop}-->
<!--{/if}-->
</div>

<div class="clear"></div>
{php doAction('home_index_right_footer',null,'300')}
</div>
{php doAction('index_footer')}
</div>
</div>
{template footer}